package com.example.demos.service;

import com.example.demos.dto.OrderDetailsDTO;
import com.example.demos.dto.OrderDetailsListDTO;
import com.example.demos.dto.OrdersByGoodsDTO;
import com.example.demos.dto.OrdersDTO;
import com.example.demos.entity.*;
import com.example.demos.util.PageBean;

import javax.servlet.http.HttpSession;
import java.math.BigInteger;
import java.util.List;

public interface OrdersService {
    PageBean<List<OrdersDTO>> select(String state, Integer page, Integer rows);

    PageBean<List<Supplier>> showSupplier(String type);

    PageBean<List<OrdersByGoodsDTO>> select1();

//    int add(List<OrderDetailsDTO> orderDetailList);

    int doCheck(Integer id,HttpSession session);

    int doStart(Integer id,HttpSession session);

    int addOrders(OrderDetailsListDTO orderDetailsListDTO, HttpSession session);


    int doInStore(BigInteger ordersDetailUuid, BigInteger storeUuid,HttpSession session);
}
